(global.webpackJsonp = global.webpackJsonp || []).push([ [ "xg_o2o/index/index" ], {
    "10a9": function(t, e, i) {
        "use strict";
        (function(t) {
            function e(t) {
                return t && t.__esModule ? t : {
                    default: t
                };
            }
            i("4e1e"), e(i("66fd")), t(e(i("a8dd")).default);
        }).call(this, i("543d").createPage);
    },
    "13c3": function(t, e, i) {
        "use strict";
        i.d(e, "b", function() {
            return o;
        }), i.d(e, "c", function() {
            return s;
        }), i.d(e, "a", function() {
            return n;
        });
        var n = {
            gracePage: function() {
                return i.e("graceUI/components/gracePage").then(i.bind(null, "1915"));
            },
            graceDialog: function() {
                return i.e("graceUI/components/graceDialog").then(i.bind(null, "8d15"));
            },
            PengpaiFadeInOut: function() {
                return i.e("components/Pengpai-FadeInOut/Pengpai-FadeInOut").then(i.bind(null, "c6d0"));
            },
            graceShade: function() {
                return i.e("graceUI/components/graceShade").then(i.bind(null, "6b7b"));
            },
            graceSearch: function() {
                return i.e("graceUI/components/graceSearch").then(i.bind(null, "d720"));
            },
            xmgSwiperDot: function() {
                return i.e("components/xmg-swiper-dot/xmg-swiper-dot").then(i.bind(null, "aa5a"));
            },
            indexList2: function() {
                return i.e("components/index-list2/index-list2").then(i.bind(null, "89db"));
            },
            indexList3: function() {
                return i.e("components/index-list3/index-list3").then(i.bind(null, "2186"));
            },
            graceFixedMsg: function() {
                return i.e("graceUI/components/graceFixedMsg").then(i.bind(null, "d7c7"));
            },
            divider: function() {
                return i.e("components/divider/divider").then(i.bind(null, "bdb7"));
            },
            graceLoading: function() {
                return i.e("graceUI/components/graceLoading").then(i.bind(null, "93a5"));
            },
            graceToTop: function() {
                return i.e("graceUI/components/graceToTop").then(i.bind(null, "f192"));
            },
            xmgTabBar: function() {
                return i.e("components/xmgTabBar/xmgTabBar").then(i.bind(null, "cfe5"));
            }
        }, o = function() {
            var t = this, e = (t.$createElement, t._self._c, Object.keys(t.tabBar)), i = Object.keys(t.tabBar), n = Object.keys(t.tabBar);
            t.$mp.data = Object.assign({}, {
                $root: {
                    g0: e,
                    g1: i,
                    g2: n
                }
            });
        }, s = [];
    },
    4082: function(t, e, i) {
        "use strict";
        i.r(e);
        var n = i("9499"), o = i.n(n);
        for (var s in n) "default" !== s && function(t) {
            i.d(e, t, function() {
                return n[t];
            });
        }(s);
        e.default = o.a;
    },
    9150: function(t, e, i) {},
    9499: function(t, e, i) {
        "use strict";
        (function(t, n) {
            Object.defineProperty(e, "__esModule", {
                value: !0
            }), e.default = void 0;
            var o = i("9e42"), s = i("b00d"), a = (i("256d"), {
                data: function() {
                    return {
                        appid: "",
                        totop: 0,
                        title: "",
                        attach: "",
                        bottomColor: "",
                        textColor: "",
                        releaseColor: "linear-gradient(to right, #FFCD00,#FF9B00)",
                        titleNViewBackground: "",
                        bgColor: "",
                        indexCouponImg: "",
                        indexCouponClick: 1,
                        indexNoticeClick: 1,
                        couponShow: !1,
                        slidesList: [],
                        adsList: [],
                        adsHotList: [],
                        currentImg: 0,
                        currentAd: 0,
                        currentAdHot: 0,
                        notice: [],
                        noticeContent: "",
                        categoryGroup: [],
                        categoryCurrent: 0,
                        collect: [],
                        collectImg: [],
                        recList: [],
                        recPage: 1,
                        recnomore: 0,
                        teckname: "",
                        showBottomMsg: !1,
                        bottomMsg: "没有更多了",
                        hotList: [],
                        hotPage: 1,
                        hotnomore: 0,
                        loadingType: 4,
                        share: {},
                        menuShow: !1,
                        tel: 0,
                        top: 64,
                        animationData: "",
                        isRelease: 2,
                        cuoponImg: "",
                        jximg: "",
                        rmimg: "",
                        isCoupon: 2,
                        perstatus: 0,
                        isshare: 1,
                        showdistribution: 2,
                        personnel: [],
                        hotstyle: 2,
                        defaultKeys: "",
                        gridType: 0,
                        dots: !0,
                        adDots: !0,
                        adHotDots: !0,
                        iskefu: 2,
                        iswe: 2,
                        wximg: "",
                        wxads: "",
                        indexcity: 2,
                        city: "",
                        citys: {},
                        showCitys: [],
                        citynum: 0,
                        video: "",
                        indexstyle: 1,
                        isShowAdmin: 0,
                        categoryIndex: [],
                        showteck: 2,
                        TopSwiperHeight: "360rpx",
                        isSearch: 2,
                        orderList: [],
                        showOrderTop: 84,
                        tabBar: {},
                        ggImg: "",
                        collectColor: [],
                        isPlus: 2,
                        originalItem: [],
                        indexNum: 5,
                        isindexshare: 0,
                        isindextel: 0,
                        channels: {},
                        ChannelsLiveInfo: {},
                        ChannelsLiveNoticeInfo: {},
                        winWidth: 700,
                        channelsWidth: 0,
                        channelsHeight: 0,
                        loadData: {}
                    };
                },
                onPageScroll: function(t) {
                    this.totop = t.scrollTop, this.totop > this.top ? this.titleNViewBackground = this.bgColor : this.slidesList.length > 0 ? this.titleNViewBackground = this.slidesList[this.currentImg].background : this.titleNViewBackground = this.bgColor;
                },
                onLoad: function(e) {
                    var i = this, o = Date.now(), a = s.d;
                    if (getCurrentPages(), wx.showShareMenu({
                        withShareTicket: !1,
                        menus: [ "shareAppMessage", "shareTimeline" ]
                    }), t.getSystemInfoSync().platform != this.q7) {
                        
                    }

                    this.animation = t.createAnimation({
                            duration: 200,
                            timingFunction: "linear"
                        }), this.appid = a, t.showLoading({
                            title: "加载中",
                            mask: !0
                        });
                        var r = this.$systemInfo.info();
                        this.winWidth = r.windowWidth, this.top = r.statusBarHeight + 44, this.showOrderTop = r.statusBarHeight + 80;
                        var c = 0;
                        if (e.scene) {
                            var h = decodeURIComponent(e.scene).split("&")[0].split("=");
                            "distributor" == h[0] && h[1] > 0 && (c = h[1]);
                        }
                        e.distributor > 0 && (c = e.distributor);
                        var d = t.getStorageSync("getSingleTime"), u = t.getStorageSync("myindex"), l = s.x;
                        "o" == l || "d" == l ? c > 0 ? this.distributor(c, "u8toindex") : this.indexOne("u8toindex") : !u || !d || o > d + 18e6 ? n.callFunction({
                            name: "xgo2oaccess",
                            data: {
                                ad: a
                            },
                            success: function(e) {
                                e.result.x == a ? (t.setStorageSync("myindex", "u8toindex"), t.setStorageSync("getSingleTime", o), 
                                c > 0 ? i.distributor(c, "u8toindex") : i.indexOne("u8toindex")) : (t.setStorageSync("myindex", "u9wxmini"), 
                                t.setStorageSync("getSingleTime", o), c > 0 ? i.distributor(c, "u9wxmini") : i.indexOne("u9wxmini"));
                            },
                            fail: function(e) {
                                t.setStorageSync("myindex", "u9wxmini"), t.setStorageSync("getSingleTime", o), c > 0 ? i.distributor(c, "u9wxmini") : i.indexOne("u9wxmini");
                            }
                        }) : c > 0 ? this.distributor(c, u) : this.indexOne(u);
                },
                onReachBottom: function() {
                    if (1 != this.loadingType && 2 != this.loadingType) return 1 == this.hotnomore ? (this.loadingType = 2, 
                    console.log("已全部加载"), !1) : void this.hotMore();
                },
                onShareAppMessage: function(t) {
                    return {
                        title: this.share.title,
                        path: "/xg_o2o/index/index",
                        imageUrl: this.share.imgUrl
                    };
                },
                onShareTimeline: function(t) {
                    return {
                        title: this.share.title,
                        query: "",
                        imageUrl: this.share.imgUrl
                    };
                },
                methods: {
                    toChannels: function() {
                        this.ChannelsLiveInfo && 2 == this.ChannelsLiveInfo.status ? wx.openChannelsLive({
                            finderUserName: this.channels.channelsid,
                            feedId: this.ChannelsLiveInfo.feedId,
                            nonceId: this.ChannelsLiveInfo.nonceId,
                            fail: function() {
                                t.showModal({
                                    title: "温馨提示",
                                    content: "视频号直播打开失败",
                                    showCancel: !1,
                                    confirmText: "确定"
                                });
                            }
                        }) : this.ChannelsLiveNoticeInfo && 1 == this.ChannelsLiveNoticeInfo.reservable && 0 == this.ChannelsLiveNoticeInfo.status && wx.reserveChannelsLive({
                            noticeId: this.ChannelsLiveNoticeInfo.noticeId
                        });
                    },
                    toSetting: function() {
                        var e = this;
                        this.$refs.ShowAddress.hide(), t.openSetting({
                            success: function(i) {
                                1 == i.authSetting["scope.userLocation"] ? e.getaddress() : t.showModal({
                                    title: "打开位置权限失败",
                                    content: "点击右上角(...)设置开启权限",
                                    showCancel: !1,
                                    confirmText: "确定"
                                });
                            },
                            fail: function(t) {}
                        });
                    },
                    uploadLBS: function() {
                        var e = this;
                        t.getSetting({
                            success: function(t) {
                                t.authSetting["scope.userLocation"] ? 0 == t.authSetting["scope.userLocation"] ? e.$refs.ShowAddress.open() : e.getaddress() : wx.authorize({
                                    scope: "scope.userLocation",
                                    success: function() {
                                        e.getaddress();
                                    },
                                    fail: function() {
                                        e.$refs.ShowAddress.open();
                                    }
                                });
                            },
                            fail: function(t) {}
                        });
                    },
                    getaddress: function() {
                        var e = this;
                        this.$refs.ShowAddress.hide(), t.getLocation({
                            type: "gcj02",
                            success: function(t) {},
                            fail: function() {
                                t.showModal({
                                    title: "温馨提示",
                                    content: "请打开手机位置信息(GPS)后点击首页"
                                });
                            },
                            complete: function(i) {
                                var n = "";
                                i.longitude ? (n = i.longitude + "," + i.latitude, t.setStorageSync("citylocation", n), 
                                t.setStorageSync("longitude", i.longitude), t.setStorageSync("latitude", i.latitude)) : n = t.getStorageSync("citylocation"), 
                                n && new o.AMapWX({
                                    key: e.$m
                                }).getRegeo({
                                    location: n,
                                    success: function(i) {
                                        var n = Date.now(), o = i[0].regeocodeData.addressComponent, s = o.adcode;
                                        if (e.citys.hasOwnProperty(s)) 0 == o.district.length ? (e.city = o.city, t.setStorageSync("isShowCityTime", n), 
                                        t.setStorageSync("ShowCity", o.city)) : o.district && (e.city = o.district, t.setStorageSync("isShowCityTime", n), 
                                        t.setStorageSync("ShowCity", o.district)); else if (!e.citys.hasOwnProperty(s)) {
                                            var a = 100 * parseInt(s / 100);
                                            if (e.citys.hasOwnProperty(a)) o.city.length > 0 ? (e.city = o.city, t.setStorageSync("isShowCityTime", n), 
                                            t.setStorageSync("ShowCity", o.city)) : (e.city = o.province, t.setStorageSync("isShowCityTime", n), 
                                            t.setStorageSync("ShowCity", o.province)); else if (!e.citys.hasOwnProperty(a)) {
                                                var r = 1e4 * parseInt(s / 1e4);
                                                e.citys.hasOwnProperty(r) ? (e.city = o.province, t.setStorageSync("isShowCityTime", n), 
                                                t.setStorageSync("ShowCity", o.province)) : (e.city = o.district, t.setStorageSync("ShowCity", o.district), 
                                                t.setStorageSync("isShowCityTime", n), 1 == e.indexcity && t.showModal({
                                                    title: "温馨提示",
                                                    content: "您所在的城市不在运营区域",
                                                    showCancel: !1,
                                                    confirmText: "确定",
                                                    success: function(t) {
                                                        t.confirm && e.$refs.showCitys.open();
                                                    }
                                                }));
                                            }
                                        }
                                    },
                                    fail: function(e) {
                                        "getLocation:fail:ERROR_NOCELL&WIFI_LOCATIONSWITCHOFF" == e.errMsg ? (t.hideLoading(), 
                                        t.showToast({
                                            title: "请打开手机位置信息(GPS)后点击首页",
                                            icon: "none"
                                        })) : t.hideLoading();
                                    }
                                });
                            }
                        });
                    },
                    showDialogWechat: function() {
                        this.$refs.graceDialogWechat.open();
                    },
                    closeDialogWechat: function() {
                        this.$refs.graceDialogWechat.hide();
                    },
                    changeOriginalItem: function() {
                        var t = this, e = this.$xSign.sign("v4index_more");
                        this.$xRequest.request({
                            url: "entry/wxapp/v4index_more",
                            data: {
                                xgsign: e,
                                op: "original"
                            },
                            getSession: "no",
                            success: function(e) {
                                var i = JSON.parse(t.$Decrypt(e.data.data));
                                t.originalItem = i.item;
                            },
                            complete: function() {}
                        });
                    },
                    closeNoticeDialog: function() {
                        var e = t.getStorageSync("indexNoticeArray");
                        e || (e = {}), e[this.indexNoticeClick] = 1, t.setStorageSync("indexNoticeArray", e), 
                        this.$refs.noticeDialog.hide();
                    },
                    showNotice: function(t) {
                        var e = t.currentTarget.dataset.noticeid;
                        this.noticeContent = this.notice[e].title, this.$refs.noticeDialog.open();
                    },
                    toPersonnelInfo: function(e) {
                        if (1 == this.showteck) {
                            var i = e.currentTarget.dataset.perid;
                            t.navigateTo({
                                url: "../item/itempersonnel?perid=" + i
                            });
                        }
                    },
                    toCity: function() {
                        this.$refs.showCitys.open();
                    },
                    closeCitys: function() {
                        this.$refs.showCitys.hide();
                    },
                    toPersonnel_list: function() {
                        t.navigateTo({
                            url: "../item/itempersonnel_list"
                        });
                    },
                    toSearch: function(e) {
                        this.defaultKeys = e, this.defaultKeys ? t.navigateTo({
                            url: "../search/search?e=" + this.defaultKeys
                        }) : t.showToast({
                            icon: "none",
                            title: "请输入搜索内容"
                        });
                    },
                    toUrl: function(e) {
                        var i = e.currentTarget.dataset.urltype;
                        if (1 == i) t.navigateTo({
                            url: e.currentTarget.dataset.url
                        }); else if (2 == i) wx.navigateToMiniProgram({
                            appId: e.currentTarget.dataset.mini,
                            path: e.currentTarget.dataset.url,
                            fail: function(e) {
                                t.showToast({
                                    title: "无法打开小程序",
                                    mark: !0,
                                    icon: "none",
                                    duration: 1200
                                });
                            }
                        }); else if (3 == i) {
                            var n = encodeURIComponent(e.currentTarget.dataset.url), o = e.currentTarget.dataset.title;
                            t.navigateTo({
                                url: "index_weburl?url=" + n + "&title=" + o
                            });
                        }
                    },
                    distributor: function(e, i) {
                        var n = this, o = {
                            sessionid: "",
                            wxInfo: "1",
                            memberInfo: "1"
                        }, s = this.$xSign.sign("v4getopenid");
                        t.login({
                            provider: "weixin",
                            success: function(a) {
                                n.$xRequest.request({
                                    url: "entry/wxapp/v4getopenid",
                                    data: {
                                        code: a.code,
                                        xgsign: s,
                                        op: "distributor",
                                        distributorId: e
                                    },
                                    getSession: "no",
                                    success: function(s) {
                                        s.data.errno || (o.sessionid = s.data.data.sessionid, t.setStorageSync("userInfo", o), 
                                        s.data.data.status == e ? console.log("推广成功") : console.log("客户被他人绑定"), n.indexOne(i));
                                    }
                                });
                            },
                            fail: function() {
                                console.log("login fail");
                            }
                        });
                    },
                    indexData: function(e, i) {
                        var n = this;
                        if (this.attach = e.attach, e.ggimg && (this.ggImg = e.ggimg), this.title = e.title, 
                        this.bottomColor = e.color, this.textColor = e.textColor, this.teckname = e.teckname, 
                        this.slidesList = e.slide, this.notice = e.notice, this.categoryGroup = e.category, 
                        this.gridType = e.gridtype, this.indexNum = e.indexnum, e.indexnum > 100 || 1 == this.categoryGroup.length ? this.dots = !1 : this.categoryGroup.length > 1 && (this.dots = !0), 
                        this.indexcity = e.indexcity ? e.indexcity : 1, this.citys = e.citys, this.showCitys = e.showcity, 
                        this.citynum = e.citynum, e.citynum > 0) {
                            var o = t.getStorageSync("isShowCityTime"), s = t.getStorageSync("ShowCity"), a = Date.now();
                            !s || a > o + 18e6 ? (this.city = "定位中", this.uploadLBS()) : s && (this.city = s);
                        }
                        this.originalItem = e.originalItem, this.isSearch = e.issearch, 1 == e.issearch && (this.showOrderTop = this.showOrderTop + t.upx2px(70)), 
                        this.showteck = e.showteck, this.titleNViewBackground = e.slide.length > 0 ? e.slide[0].background : e.bgcolor, 
                        this.bgColor = e.bgcolor, this.TopSwiperHeight = e.topSwiperHeight, e.releaseColor && (this.releaseColor = e.releaseColor), 
                        this.tabBar = e.tabbar, e.channels.channelsid && wx.getChannelsLiveNoticeInfo && wx.getChannelsLiveInfo && (this.channels = e.channels, 
                        wx.getImageInfo({
                            src: this.attach + this.channels.img,
                            success: function(e) {
                                n.channelsWidth = t.upx2px(710), n.channelsHeight = n.channelsWidth * e.height / e.width;
                            }
                        }), wx.getChannelsLiveInfo({
                            finderUserName: this.channels.channelsid,
                            success: function(t) {
                                n.ChannelsLiveInfo = t;
                            },
                            fail: function(t) {}
                        }), wx.getChannelsLiveNoticeInfo({
                            finderUserName: this.channels.channelsid,
                            success: function(t) {
                                n.ChannelsLiveNoticeInfo = t;
                            },
                            fail: function(t) {}
                        })), e.indexpop && (this.indexCouponImg = this.attach + e.indexpop.img, this.indexCouponClick = "index" + e.indexpop.id), 
                        e.noticepop && (this.indexNoticeClick = "notice" + e.noticepop.id), this.isPlus = e.isplus, 
                        this.isCoupon = e.iscoupon, this.cuoponImg = e.couponimg, this.adsList = e.ads, 
                        this.adDots = e.ads.length > 1, this.collect = e.collect, this.collectImg = e.collectimg, 
                        this.collectColor = e.collectcolor, this.indexstyle = e.indexstyle;
                        var r = t.getStorageSync("indexCouponArray");
                        r && 1 == r[this.indexCouponClick] ? this.couponShow = !1 : this.couponShow = !0;
                        var c = t.getStorageSync("indexNoticeArray");
                        c && 1 == c[this.indexNoticeClick] || e.noticepop && (this.noticeContent = e.noticepop.title, 
                        this.$refs.noticeDialog.open()), this.jximg = e.jximg, this.rmimg = e.rmimg, this.tel = e.tel, 
                        this.share = e.share, this.isRelease = e.isrelease, e.releaseColor && (this.releaseColor = e.releaseColor), 
                        this.perstatus = e.personnelstatus, this.isShowAdmin = e.isShowAdmin, this.hotstyle = e.hotstyle, 
                        this.iskefu = e.iskefu, this.iswe = e.iswe, this.isindexshare = e.isindexshare, 
                        this.isindextel = e.isindextel, this.wximg = e.wximg, this.categoryIndex = e.categoryIndex, 
                        this.adsHotList = e.adsHot, this.video = e.advedio, this.personnel = e.personnels, 
                        this.wxads = e.wxads, this.showdistribution = e.showdistribution, this.adHotDots = this.adsHotList.length > 1, 
                        this.orderList = e.order, this.tabBar = e.tabbar, 1 == i && t.removeStorageSync("newpreindex"), 
                        this.recMore(1), this.hotMore(1);
                    },
                    indexOne: function(e) {
                        var i = this, n = t.getStorageSync("newpreindex");
                        if (n && 0 == n.errno) {
                            console.log("缓存");
                            var o = n.data;
                            t.hideLoading(), this.indexData(o, 1);
                        } else this.$xRequest.request({
                            url: "entry/wxapp/" + e,
                            getSession: "no",
                            data: {
                                step: "three"
                            },
                            success: function(e) {
                                var n = JSON.parse(i.$Decrypt(e.data.data));
                                if (0 == e.data.errno) {
                                    var o = {
                                        errno: 0,
                                        msg: "加载后",
                                        data: n
                                    };
                                    t.hideLoading(), console.log("请求"), t.setStorageSync("newpreindex", o), i.indexData(n);
                                }
                            },
                            fail: function(e) {
                                t.showToast({
                                    title: "请求错误，请检查配置或重新加载小程序！",
                                    duration: 8e3,
                                    icon: "none"
                                });
                            },
                            complete: function(t) {}
                        });
                    },
                    indexTwo: function(e) {
                        var i = this;
                        t.showLoading({
                            title: "加载中",
                            mask: !0
                        }), this.$xRequest.request({
                            url: "entry/wxapp/" + e,
                            getSession: "no",
                            data: {
                                step: "two"
                            },
                            success: function(t) {
                                JSON.parse(i.$Decrypt(t.data.data)), t.data.errno;
                            },
                            fail: function(t) {},
                            complete: function() {}
                        });
                    },
                    showMenu: function() {
                        var t = this;
                        this.menuShow = !0, this.animation.rotate(180).step(), this.animationData = this.animation.export(), 
                        setTimeout(function() {
                            t.animation.rotate(-180).step(), t.animationData = t.animation.export();
                        }, 100);
                    },
                    hideMenu: function() {
                        var t = this;
                        this.menuShow = !1, this.animation.rotate(180).step(), this.animationData = this.animation.export(), 
                        setTimeout(function() {
                            t.animation.rotate(-180).step(), t.animationData = t.animation.export();
                        }, 100);
                    },
                    hotMore: function(e) {
                        var i = this;
                        1 != this.loadingType && 2 != this.loadingType && (1 != this.hotnomore ? (this.loadingType = 1, 
                        setTimeout(function() {
                            var e = i.$xSign.sign("v4index_more");
                            i.$xRequest.request({
                                url: "entry/wxapp/v4index_more",
                                data: {
                                    xgsign: e,
                                    page: i.hotPage,
                                    op: "hotmore"
                                },
                                getSession: "no",
                                success: function(e) {
                                    var n = JSON.parse(i.$Decrypt(e.data.data));
                                    0 == e.data.errno && "-1" != n.all ? (n.hot.length < n.pagesize ? (i.hotnomore = 1, 
                                    i.loadingType = 2) : (i.hotnomore = 0, i.loadingType = 0), i.hotList = i.hotList.concat(n.hot), 
                                    i.hotPage = n.page + 1) : (i.hotnomore = 1, i.loadingType = 2), t.hideLoading();
                                },
                                complete: function() {}
                            });
                        }, 100)) : this.loadingType = 2);
                    },
                    recMore: function(e) {
                        var i = this;
                        if (1 == this.recnomore || 2 == this.recnomore) return !1;
                        this.recnomore = 2, setTimeout(function() {
                            var e = i.$xSign.sign("v4index_more");
                            i.$xRequest.request({
                                url: "entry/wxapp/v4index_more",
                                data: {
                                    xgsign: e,
                                    page: i.recPage,
                                    op: "recmore"
                                },
                                getSession: "no",
                                success: function(e) {
                                    var n = JSON.parse(i.$Decrypt(e.data.data));
                                    0 == e.data.errno && "-1" != n.all ? (n.rec.length < n.pagesize ? (i.recnomore = 1, 
                                    i.recPage > 1 && (i.showBottomMsg = !0, i.bottomMsg = "精选服务已全部加载完成"), setTimeout(function() {
                                        i.showBottomMsg = !1;
                                    }, 1200)) : i.recnomore = 0, i.recList = i.recList.concat(n.rec), i.recPage = n.page + 1) : (i.recnomore = 1, 
                                    i.recPage > 1 && (i.showBottomMsg = !0, i.bottomMsg = "精选服务已全部加载完成"), setTimeout(function() {
                                        i.showBottomMsg = !1;
                                    }, 1200)), t.hideLoading();
                                },
                                complete: function() {
                                    if (1 == i.hotnomore) return i.loadingType = 2, console.log("已全部加载"), !1;
                                }
                            });
                        }, 100);
                    },
                    swiperChange: function(t) {
                        var e = t.detail.current;
                        this.currentImg = e, this.totop < this.top && (this.titleNViewBackground = this.slidesList[e].background);
                    },
                    adsChange: function(t) {
                        var e = t.detail.current;
                        this.currentAd = e;
                    },
                    adsHotChange: function(t) {
                        var e = t.detail.current;
                        this.currentAdHot = e;
                    },
                    categoryChange: function(t) {
                        this.categoryCurrent = t.detail.current;
                    },
                    toItemUrl: function(e) {
                        var i = e.currentTarget.dataset.itemid;
                        t.navigateTo({
                            url: "../item/item?itemid=" + i
                        });
                    },
                    toCategoryUrl: function(e) {
                        var i = e.currentTarget.dataset.cateid, n = e.currentTarget.dataset.item, o = e.currentTarget.dataset.one, s = e.currentTarget.dataset.color;
                        1 == o && n > 0 ? t.navigateTo({
                            url: "../item/item?itemid=" + n
                        }) : t.navigateTo({
                            url: "../cateitem/cateitem?parent=" + i + "&color=" + s
                        });
                    },
                    toCategoryUrl2: function(e) {
                        var i = e.currentTarget.dataset.urltype;
                        if (1 == i) t.navigateTo({
                            url: e.currentTarget.dataset.url
                        }); else if (2 == i) wx.navigateToMiniProgram({
                            appId: e.currentTarget.dataset.mini,
                            path: e.currentTarget.dataset.url,
                            fail: function(e) {
                                t.showToast({
                                    title: "无法打开小程序",
                                    mark: !0,
                                    icon: "none",
                                    duration: 1200
                                });
                            }
                        }); else if (3 == i) {
                            var n = encodeURIComponent(e.currentTarget.dataset.url), o = e.currentTarget.dataset.title;
                            t.navigateTo({
                                url: "index_weburl?url=" + n + "&title=" + o
                            });
                        }
                    },
                    toCoupon: function(e) {
                        var i = t.getStorageSync("indexCouponArray");
                        i || (i = {}), i[this.indexCouponClick] = 1, t.setStorageSync("indexCouponArray", i), 
                        this.couponShow = !1, t.navigateTo({
                            url: "../coupon/coupon"
                        });
                    },
                    closeCoupon: function() {
                        var e = t.getStorageSync("indexCouponArray");
                        e || (e = {}), e[this.indexCouponClick] = 1, t.setStorageSync("indexCouponArray", e), 
                        this.couponShow = !1;
                    },
                    makePhoneCall: function() {
                        t.makePhoneCall({
                            phoneNumber: this.tel
                        });
                    }
                }
            });
            e.default = a;
        }).call(this, i("543d").default, i("a9ff").default);
    },
    a8dd: function(t, e, i) {
        "use strict";
        i.r(e);
        var n = i("13c3"), o = i("4082");
        for (var s in o) "default" !== s && function(t) {
            i.d(e, t, function() {
                return o[t];
            });
        }(s);
        i("f8fb");
        var a = i("f0c5"), r = Object(a.a)(o.default, n.b, n.c, !1, null, null, null, !1, n.a, void 0);
        e.default = r.exports;
    },
    f8fb: function(t, e, i) {
        "use strict";
        var n = i("9150");
        i.n(n).a;
    }
}, [ [ "10a9", "common/runtime", "common/vendor" ] ] ]);